package com.jiaai.web.xiaoke.version;

import com.alibaba.dubbo.config.annotation.Reference;
import com.jiaai.exception.ServerException;
import com.jiaai.util.RestResultGenerator;
import com.jiaai.version.api.TPersonalApi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2018-03-12
 */
@RestController
@RequestMapping("/api/v1/app/personal")
public class AppPersonalController {
    @Reference
    TPersonalApi tPersonalApi;

    /**
     * app查询关于我们的接口数据
     * @param
     * @return
     * @throws Exception
     */
    @GetMapping("/findByOne")
    public Object findByOne() throws ServerException {
        try {
            return RestResultGenerator.genSuccessResult(tPersonalApi.findByOne());
        } catch (Exception e) {
            throw new ServerException("查询失败");
        }
    }


	
}
